package com.xiaoyg.lession01.chapter07.nothreadsafe;

import com.xiaoyg.lession01.chapter07.nothreadsafe.MyThread;

/**
 * 数据共享
 * 产生非线程安全问题
 */
public class Run {

    public static void main(String[] args) {
        MyThread myThread = new MyThread();

        Thread a = new Thread(myThread,"A");
        Thread b = new Thread(myThread,"B");
        Thread c = new Thread(myThread,"C");
        Thread d = new Thread(myThread,"D");
        Thread e = new Thread(myThread,"E");

        a.start();
        b.start();
        c.start();
        d.start();
        e.start();

    }






}
